﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>MyCompany.MyProject</Solution>
// <Project>MyCompany.MyProject.Application</Project>
// <FileName>IProductCategoryAppService.cs</FileName>
// <CreateTime>2017-04-17 23:52</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-04-17 23:52" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Vecen.BangChuang.BangChuang.Products.Dto;

namespace Vecen.BangChuang.BangChuang.Products {
    /// <summary>
    /// 商品分类
    /// </summary>
    public interface IProductCategoryAppService: IApplicationService {

        /// <summary>
        /// 获得所有商品分类
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<CategoryOutputDto>> GetCategoriesAsync(GetCategoriesRequestDto input);

        /// <summary>
        /// 以树形结果获取所有商品分类
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<CategoryTreeDto> GetCategoriesWithTreeAsync(GetCategoriesRequestDto input);


        /// <summary>
        /// 创建分类
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateAsync(CategoryCreateDto input);

        /// <summary>
        /// 删除分类
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteAsync(int id);
    }
}